import "normalize.css/normalize.css"; // A modern alternative to CSS resets
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'virtual:svg-icons-register'

import "moment/dist/locale/zh-cn";
import "@/assets/css/yimi.scss";

import microApp from '@micro-zoe/micro-app'

import App from './App.vue'
const app = createApp(App)
app.use(createPinia())


import SvgIcon from '@/components/SvgIcon'
app.use(SvgIcon)

import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/src/index.scss'
import "element-plus/theme-chalk/src/message.scss";
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
  locale: zhCn,
  namespace: 'ep'
})


import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component('ElIcon' + key, component)
}

microApp.start({
  'keep-router-state': true, // 保留路由状态
  prefetchLevel: 2,
})


import router from './router'
app.use(router)


app.mount('#base-app')
